import request from '@/config/axios'

export function getAllBlueprintClassificationApi() {
	return request.get<GClassification[]>({
		url: '/game/g-blueprint/readOnly/getAllBlueprintClassification'
	})
}

export function getAllBlueprintAuthorApi() {
	return request.get<GBlueprintAuthor[]>({
		url: '/game/g-blueprint/readOnly/getAllBlueprintAuthor'
	})
}

export function saveBlueprintApi(data: SaveBlueprintRequest) {
	return request.post<GClassification[]>({
		url: '/game/g-blueprint/saveBlueprint',
		data
	})
}

export function deleteBlueprintApi(id: number) {
	return request.delete<GClassification[]>({
		url: '/game/g-blueprint/deleteBlueprint/' + id
	})
}
